<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-project-edit" th:object="${project}">
            <input id="projectId" name="projectId" th:field="*{projectId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">合同号：</label>
				<div class="col-sm-8">
					<input id="contractNumber" name="contractNumber" th:field="*{contractNumber}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工程名称：</label>
				<div class="col-sm-8">
					<input id="name" name="name" th:field="*{name}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">账号：</label>
				<div class="col-sm-8">
					<input id="account" name="account" th:field="*{account}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">建设单位：</label>
				<div class="col-sm-8">
					<input id="developmenName" name="developmenName" th:field="*{developmenName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">委托单位：</label>
				<div class="col-sm-8">
					<input id="entrusting" name="entrusting" th:field="*{entrusting}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">检测进度：</label>
				<div class="col-sm-8">
					<input id="detectProgress" name="detectProgress" th:field="*{detectProgress}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">检测费用：</label>
				<div class="col-sm-8">
					<input id="detectCost" name="detectCost" th:field="*{detectCost}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">折扣：</label>
				<div class="col-sm-8">
					<input id="discount" name="discount" th:field="*{discount}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">折扣后费用：</label>
				<div class="col-sm-8">
					<input id="discountCost" name="discountCost" th:field="*{discountCost}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">收款信息_总收款：</label>
				<div class="col-sm-8">
					<input id="receiptTotalCost" name="receiptTotalCost" th:field="*{receiptTotalCost}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">收款信息_合格：</label>
				<div class="col-sm-8">
					<input id="receiptQualifiedCost" name="receiptQualifiedCost" th:field="*{receiptQualifiedCost}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">收款信息_不合格：</label>
				<div class="col-sm-8">
					<input id="receiptUnqualifiedCost" name="receiptUnqualifiedCost" th:field="*{receiptUnqualifiedCost}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">收款信息_记录1：</label>
				<div class="col-sm-8">
					<input id="receiptRecordOne" name="receiptRecordOne" th:field="*{receiptRecordOne}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">收款信息_记录2：</label>
				<div class="col-sm-8">
					<input id="receiptRecordTwo" name="receiptRecordTwo" th:field="*{receiptRecordTwo}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">检测费金额：</label>
				<div class="col-sm-8">
					<input id="detectTotalCost" name="detectTotalCost" th:field="*{detectTotalCost}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">结算方式：</label>
				<div class="col-sm-8">
					<input id="payType" name="payType" th:field="*{payType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注信息：</label>
				<div class="col-sm-8">
					<textarea id="remark" name="remark" th:field="*{remark}" class="form-control" type="text"></textarea>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/project"
		$("#form-project-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-project-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
